package com.haredot.mapper;

import com.haredot.entity.Mark;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MarkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Mark record);

    Mark selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Mark record);

    Mark findMarkBySnoAndCourseId(@Param("stuId") Long stuId, @Param("courseId") Integer courseId);

    List<Map<String, Object>> findMarkListByCondition(Map<String, Object> params);

    int batchRemove(List<Integer> ids);
}